package com.sixth.controller;

import com.sixth.service.DeptService;
import com.sixth.util.CommonResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @program: project01
 * @description:
 * @author: 高振杨
 * @create: 2021-12-18 10:38
 **/
@RestController
@RequestMapping("/dept")
public class DeptController {

    @Autowired
    private DeptService service;
    @RequestMapping("/findAll")
    public CommonResult findAll(){
        CommonResult all = service.finAll();
        return  all;
    }
}
